package cas.ihep.spark.util;

import scala.Tuple2;

public interface ManagedResourceKV<K,V> extends ManagedResource<Tuple2<K,V>> {
    default K key(){
        return get()._1();
    }

    default V value(){
        return get()._2();
    }
}
